@import '~antd/lib/style/themes/default.less';
@import '~@/utils/utils.less';

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

.organAdd {
    font-size: 20px;
    vertical-align: middle;
    color: #cccccc;
    cursor: pointer;
    position: absolute;
    bottom: 40px;
    right: -23px;
    display: none;
    &:hover {
      color: #1BC489;
    }
}
.organEdit {
    font-size: 20px;
    vertical-align: middle;
    color: #cccccc;
    cursor: pointer;
    position: absolute;
    bottom: 20px;
    right: -23px;
    display: none;
    &:hover {
      color: #1BC489;
    }
}
.organDelete {
    font-size: 20px;
    vertical-align: middle;
    color: #cccccc;
    cursor: pointer;
    position: absolute;
    bottom: 0px;
    right: -23px;
    display: none;
    &:hover {
      color: #ff4d4f;
    }
}

.organ_box {
    width: 220px;
    height: 110px;
    border: 2px solid #1BC489 !important;
    border-radius: 4px;
    position: relative;

    .dept_name {
      margin-top: 20px;
    }
    &:hover {
      box-shadow: 0 0 8px #ccc;
    }
}

.proOrganTree {
    :global {
        .orgchart {
            background: #fff;
            height: 1000px;
            width: calc(100%);
            .node {
              .bottomEdge {
                width: 18px;
                height: 18px;
                line-height: 11px;
                border: 2px solid #ccc;
                border-radius: 18px;
                color: #ccc;
                font-weight: 700;
                left: 104px;
                bottom: -15px;
              }
              .topEdge {
                display: none;
              }
              .leftEdge {
                display: none;
              }
              .rightEdge {
                display: none;
              }
            }
            .lines {
              .rightLine {
                  border-right: 1px solid #cccccc;
              }
              .leftLine {
                  border-left: 1px solid #cccccc;
              }
              .topLine {
                  border-top: 2px solid #cccccc;
              }
              .downLine {
                background-color: #cccccc;
              }
            }

        }
        .orgchart td{
            padding: 0 6px;
        }

    }
}

.proDepttableList {
  :global {
    .ant-table-body {
      overflow: auto !important;
    }

    .ant-table-thead > tr >th{
        white-space: nowrap;
    }

    .ant-table-tbody > tr > td{
        white-space: nowrap;
    }
  }
  .proDepttableListOperator {
    margin-bottom: 16px;
    button {
      margin-right: 8px;
    }
  }
}

.proDepttableListForm {
  :global {
    .ant-form-item {
      display: flex;
      margin-right: 0;
      margin-bottom: 24px;
      > .ant-form-item-label {
        width: auto;
        padding-right: 8px;
        line-height: 32px;
      }
      .ant-form-item-control {
        line-height: 32px;
      }
    }
    .ant-form-item-control-wrapper {
      flex: 1;
    }
  }
  .submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}

@media screen and (max-width: @screen-lg) {
  .proDepttableListForm :global(.ant-form-item) {
    margin-right: 24px;
  }
}

@media screen and (max-width: @screen-md) {
  .proDepttableListForm :global(.ant-form-item) {
    margin-right: 8px;
  }
}
